package com.eugeneMa.entity;

import java.util.Date;

/**
 * 用户表
 *
 * @author Eugenema
 * @date 2022/1/2 15:27
 */
public class UserInfo {
    /** 用户ID */
    private Integer id;
    /** 用户名 */
    private String userName;
    /** 用户名最大长度：20 */
    public static Integer userNameLength = 20;
    /** 用户密码 */
    private String userPassword;
    /** 角色ID */
    private Integer role;
    /** 上次登录时间 */
    private Date lastLoginTime;

    public UserInfo() {
    }

    public UserInfo(Integer id, String userName, String userPassword, Integer role, Date lastLoginTime) {
        this.id = id;
        this.userName = userName;
        this.userPassword = userPassword;
        this.role = role;
        this.lastLoginTime = lastLoginTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
}
